// 通过改变APIV1参数来切换mock模式，开发：/api/screen; Mock: /api/v1（ 见：mock/_utils.js）
const APIV1 = '/api/v1';

module.exports = {
  name: 'oni-dva-umi-demo',
  CORS: [],
  openPages: ['/login'],
  apiPrefix: APIV1,
  APIV1,
  api: {
    // 空间资源接口（space）
    mapSpecialQueryUrl:  `/hsh/gisappmap/mapSpecialQuery`,
    queryHistoryImageUrl: `/hsh/gisappmap/mapImageQuery`,
    spaceDome1: `${APIV1}/space/demo1`,
    spaceDome2: `${APIV1}/space/demo2`,
    spaceResourcesQueryUrl:`/hsh/gisappmap/list`,
    arcgisFeatureServerQuery:`/arcgis/rest/services/hsh/FeatureServer/`,
    patrolSpecialSiteCountUrl:`/hsh/patrolspecial/siteCount`,
    patrolSpecialWorkflowCountUrl:`/hsh/patrolspecial/workflowCount`,
    patrolSpecialWorkflowInfoUrl:`/hsh/patrolspecial/workflowInfo`,
    patrolSpecialWorkflowExtListUrl:`/hsh/patrolspecial/workflowExtList`,
    patrolSpecialPatrolPersonCountUrl:`/hsh/patrolspecial/patrolPersonCount`,
    patrolSpecialPatrolPersonInfoUrl:`/hsh/patrolspecial/patrolPersonInfo`,
    pubdictValueListUrl:`/hsh/pubdictvalue/list`,
    birdGeneralUrl:`/hsh/birdresources/birdGeneral`,
    birdCountUrl:`/hsh/birdresources/birdCount`,
    rainfallCountUrl:`/hsh/rainfall/rainfallcount`,
    // layerSetting
    mapConfigListUrl:`/hsh/gisappmap/mapConfigList`,
    pubtabcolsListUrl:`/hsh/pubtabcols/list`,
    pubtabcolsUpdateUrl:`/hsh/pubtabcols/updateAnalysis`,
    // user
    Users: `${APIV1}/Users`,
    currentUser: `/hsh/currentUser`,
    notices: `${APIV1}/notices`,
    // login
    loginAccount: `/hsh/login`,
    loginOutUrl: `/hsh/loginOut`,
    loginCaptcha: `${APIV1}/login/captcha`,

    //新增图层弹出编辑属性框
    saveNewLayerUrl: `/hsh/gisappmap/saveByTable`
  },

  // // dev
  // api: {
  //   // 空间资源接口（space）
  //   queryHistoryImageUrl: `${APIV1}/space/queryHistoryImage`,
  //   spaceDome1: `${APIV1}/space/demo1`,
  //   spaceDome2: `${APIV1}/space/demo2`,
  //   spaceResourcesQueryUrl:`${APIV1}/spaceResources/query`,
  //   arcgisFeatureServerQuery:`/arcgis/rest/services/hsh/FeatureServer/`,
  //   birdNamesQueryUrl:`${APIV1}/bird/nameQuery`,
  //   birdCountUrl:`${APIV1}/bird/count`,
  //   rainfallCountUrl:`${APIV1}/rainfall/count`,
  //   // user
  //   Users: `${APIV1}/Users`,
  //   currentUser: `${APIV1}/currentUser`,
  //   notices: `${APIV1}/notices`,
  //   // login
  //   loginAccount: `${APIV1}/login/account`,
  //   loginCaptcha: `${APIV1}/login/captcha`,
  // },
}
